package com.userfactssample.client.client.screens;

import com.smartgwt.mobile.client.types.Alignment;
import com.userfactssample.client.client.common.FontDecorator;
import com.userfactssample.client.client.framework.UMHLayout;
import com.userfactssample.client.client.framework.UMHeader2;
import com.userfactssample.client.client.framework.UMVLayout;
import com.userfactssample.client.client.framework.formItems.UMEmailItem;

public class EmailScreen extends AbstractUMScreen{

	@Override
	public void buildMainScreen(UMVLayout container) {
		UMHeader2 header = new UMHeader2("Thank you for <br /> Participating");
		FontDecorator.decorateAsHeading(header);
		container.addMember(header);
		
		UMHeader2 header2 = new UMHeader2("You will soon be sent back to<br/>the website. We will send you a<br/>few follow-up questions via mail<br/>soon after this visit.");
		FontDecorator.decorateAsBody(header2);
		container.addMember(header2);
		
		UMHLayout formLayout = new UMHLayout();
		formLayout.setAlign(Alignment.CENTER);
		
		UMEmailItem emailItem = new UMEmailItem("EmailItem");
		emailItem.setWidth("175px");
		formLayout.addMember(emailItem);

		container.addMember(formLayout);
		
		UMHeader2 information = new UMHeader2("Your email will only be used to send you a questionnarie.");
		FontDecorator.decorateAsSubBody(information);
		container.addMember(information);
	}
}
